using UnityEngine;
using System.Collections;

public abstract class Bullet : MonoBehaviour
{
	//------------------------------
	public		bool					m_bPersecution;
	public		float					m_fDamagePerHit;
	public		float					m_fSpeed			=	10;
	protected	float					m_fTimeCoef			=	1.0f;
	
	
	//------------------------------
	public void ChangeTimeCoef(float _fNewTimeCoef)
	{
		m_fTimeCoef *= _fNewTimeCoef;
	}
	
	
	//------------------------------
	void Start ()
	{
		m_fTimeCoef			=	1.0f;
	}
	
	//------------------------------
	protected void End(){
		Destroy(gameObject);	
	}
	
	//------------------------------
	void OnBecameInvisible()
	{
		End();
	}
	
	//------------------------------
	void AttachToGameplayArea()
	{
	}
	
	/*void DeattachOfGameplayArea()
	{
		m_v3ResidualSped = m_scGameplayArea.Speed;
	}*/
	
}

